package com.king.designpatterns.创造型模式.抽象工厂模式;

/**
 * @author king
 * @date 2021-06-07 16:35
 */
public class ConcreteFactory1 implements AbstractFactory{
    // 创建等级为1的产品A
    @Override
    public ProductA factoryA() {
        return new ProductA1();
    }

    // 创建等级为1的产品B
    @Override
    public ProductB factoryB() {
        return new ProductB1();
    }
}
